const axios = require('axios');

export function fetchList(start, end) {
    return axios.get({
      url: '/api/fundrecords/'+ start +'/'+ end +'/'
    })
}

export function searchList(fund_id_prefix) {
    return axios.get({
      url: '/api/fundrecords-search/' + fund_id_prefix + '/'
    })
}

export function syncFundRecordData(fid) {
    return axios.get({
      url: '/api/fundtransactionrecord-sync/' + fid +'/'
    })
}

export function fetchFundDetails(fid, lastdays, reserve) {
    return axios.get({
        url: '/api/transactionrecord-list/' + fid + '/' + lastdays + '/' + reserve + '/'
    })
}
